﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Program
    {
        static void Main(string[] args)
        {
            //Tiger t = new Tiger();
            //t.Walk();
            //t.Eat();
            //t.Sleep();
            //t.Cry();
            //t.See();
            //t.Sing();

            //Console.WriteLine("----------------------");

            //Cat c = new Cat();
            //c.Walk();
            //c.Eat();
            //c.Sleep();
            //c.Cry();
            //c.See();
            //c.Grab();

            //Console.WriteLine("----------------------");

            //Eagle e = new Eagle();
            //e.Walk();
            //e.Eat();
            //e.Sleep();
            //e.Cry();
            //e.Fly();
            //e.Fash();

            //Console.WriteLine("----------------------");

            //Swallow s = new Swallow();
            //s.Walk();
            //s.Eat();
            //s.Sleep();
            //s.Cry();
            //s.Fly();
            //s.Cross();

            //宠物店
            PetShop per = new PetShop();
            Tiger tiger = new Tiger();
            per.Petshop(tiger);

            Console.WriteLine("----------------------");

            Cat cat = new Cat();
            per.Petshop(cat);

            Console.WriteLine("----------------------");

            Eagle eagle = new Eagle();
            per.Petshop(eagle);

            Console.WriteLine("----------------------");

            Swallow swallow = new Swallow();
            per.Petshop(swallow);

            Console.ReadLine();
        }
    }
}
